package com.situ.car.service.Impl;

import com.situ.car.dao.IPermissionDao;
import com.situ.car.dao.Impl.PermissionDaoImpl;
import com.situ.car.pojo.entity.Permission;
import com.situ.car.pojo.vo.RoleVo;
import com.situ.car.service.IPermissionService;

import java.util.List;

public class PermissionServiceImpl implements IPermissionService {
    private IPermissionDao permissionDao = new PermissionDaoImpl();

    @Override
    public List<Permission> selectAll(Integer roleId) {
        return permissionDao.selectAll(roleId);
    }

    @Override
    public List<RoleVo> selectPath(Integer roleId) {
        return permissionDao.selectPath(roleId);
    }
}
